<%@ page language="java" pageEncoding="UTF-8"%>
<%String userId = (String)request.getParameter("userId");
if(userId == null) userId = (String)request.getAttribute("userId");
 %>
<div id="navBar" class="menu-bar" style="text-align: center;">
	<div class="navigation clearfix">
		<div id="logo">
			<h1>
				<a href="home.action?userId=<%=userId %>" title="个人知识库">个人知识库</a>
			</h1>
		</div>
		<div class="nav-body clearfix">
			<div class="nav-main">
				<div class="menu">
					<div class="menu-title">
						<a href="home.action?userId=<%=userId %>">首页</a>
					</div>
				</div>

				<div class="menu" style="margin: 0">
					<div class="menu-title">
						<a href="profile.action?userId=<%=userId %>&loginId=<%=userId %>">个人主页</a>
					</div>
				</div>
				<div class="menu info-edit">
					<div class="menu-title">
						<a href="/BasicInfo.do">修改</a>
					</div>
				</div>

				<div class="menu">
					<div class="menu-title">
						<a href="knowledgelist.action?userId=<%=userId %>&user=own">知识</a>
					</div>
				</div>
				
				<div class="menu">
					<div class="menu-title">
						<a href="friends.jsp?userId=<%=userId %>">好友</a>
					</div>
				</div>
			</div>

			<div class="nav-other">

				<div id="searchMenu" class="menu">
					<div class="menu-title">
						<a id="searchMenuAction" href="javascript:void(0);">好友搜索</a>
					</div>
				</div>
				<div id="navSearch">
					<form method="get" id="globalSearchForm"
						action="searchresults.jsp?userId=<%=userId %>">
						<div id="search-input">
							<input type="text" size="25" maxlength="100" name="name" id="navSearchInput"
								class="input-text" value="" tabindex="1" />
						</div>
						<div id="search-submit">
							<a href="javascript:document.getElementById('globalSearchForm').submit()" id="navSearchSubmit"><span
								class="search-mag-glass">&nbsp;</span> </a>
						</div>
						<input name="userId" value="<%=userId%>" type="hidden">
					</form>
				</div>
				<div id="navAccount" class="menu">
					<div class="menu-title">
						<a href="profile.action">帐号</a>
					</div>
				</div>
				<div class="menu last">
					<div class="menu-title">
						<a href="login.jsp">退出</a>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>
